<include file="Public:header_inc" />
<script type="text/javascript"
	src="{{$Think.config.siteJsPath}}/admin/role.js"></script>

<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href='javascript:;' class="on"><em>角色管理</em></a><span>|</span><a
			href='{{$Think.config.siteDomain}}/role/add/'><em>添加角色</em></a>
	</div>
</div>
<div class="table-list pad-lr-10">
	<form name="myform"
		action="{{$Think.config.siteDomain}}/role/listorder/" method="post">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th width="10%">排序</th>
					<th width="10%">ID</th>
					<th width="15%" align="left">角色名称</th>
					<th width="265" align="left">角色描述</th>
					<th width="5%" align="left">状态</th>
					<th class="text-c">管理操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="role_list" item="vo">
				<tr>
					<td width="10%" align="center"><input
						name='listorders[{{$vo.roleid}}]' type='text' size='3'
						value='{{$vo.listorder}}' class="input-text-c"></td>
					<td width="10%" align="center">{{$vo.roleid}}</td>
					<td width="15%">{{$vo.rolename}}</td>
					<td width="265">{{$vo.description}}</td>
					<td width="5%"><if condition="$vo.disabled eq 0 "> <a
							href="javascript:;" onclick="set_disabled({{$vo.roleid}},1)">
							<else /> <a href="javascript:;"
							onclick="set_disabled({{$vo.roleid}},0)"></if> <if
							condition="$vo.disabled eq 0 "> <font color="red">√</font> <else />
						<font color="blue">×</font> </if> </a></td>
					<td class="text-c"><if condition="$vo.roleid eq 1 "> <font
							color="#cccccc">权限设置</font> <else /> <a href="javascript:;"
							onclick="setting_role({{$vo.roleid}}, '{{$vo.rolename}}')">权限设置</a>
						</if> | <if condition="$vo.roleid eq 1 "> <font color="#cccccc">栏目权限</font>
						<else /> <a href="javascript:void(0)"
							onclick="setting_cat_priv({{$vo.roleid}}, '{{$vo.rolename}}')">栏目权限</a></if>
						| <a href="/role/member/roleid/{{$vo.roleid}}/">成员管理</a> | <if
							condition="$vo.roleid eq 1 "> <font color="#cccccc">修改</font>
						<else /> <a href="/role/edit/roleid/{{$vo.roleid}}/">修改</a></if> | <if
							condition="$vo.roleid eq 1 "> <font color="#cccccc">删除</font>
						<else /> <a href="javascript:;"
							onclick="delete_role({{$vo.roleid}})">删除</a></if></td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" class="button" name="dosubmit" value="排序" />
		</div>
	</form>
</div>
</body>
<include file="Public:footer" />